<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class NamespaceRegistry</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Interface NamespaceRegistry</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The <a href="../phpContentRepository/Item.html">Item</a> is the base interface of <a href="../phpContentRepository/Node.html">Node</a> and <a href="../phpContentRepository/Property.html">Property</a>.</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51</li>
				<li><span class="field">author:</span> PHP - Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_NamespaceRegistry_interface_php.html">/NamespaceRegistry.interface.php</a> (line <span class="field">33</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getPrefix" title="details" class="method-name">getPrefix</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$uri</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getPrefixes" title="details" class="method-name">getPrefixes</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getURI" title="details" class="method-name">getURI</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">a</span>
										<a href="#getURIs" title="details" class="method-name">getURIs</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setMapping" title="details" class="method-name">setMapping</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$uri</span>)
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetPrefix" id="getPrefix"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getPrefix</span> (line <span class="line-number">100</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the prefix to which the given $uri is mapped.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a>    When?</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getPrefix
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$uri</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$uri</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetPrefixes" id="getPrefixes"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPrefixes</span> (line <span class="line-number">65</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array holding all currently registered prefixes.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getPrefixes
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetURI" id="getURI"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getURI</span> (line <span class="line-number">86</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the URI to which the given $prefix is mapped.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a>    When?</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getURI
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetURIs" id="getURIs"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getURIs</span> (line <span class="line-number">73</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array holding all currently registered URIs.</p>
	<ul class="tags">
				<li><span class="field">return:</span> string array</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">a</span>
		<span class="method-name">
			getURIs
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodsetMapping" id="setMapping"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setMapping</span> (line <span class="line-number">57</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set a mapping from prefix to URI.</p>
<p class="description"><p>To remove an existing mapping, set its prefix to NULL.</p><p>Mappings are one-to-one: remapping an existing URI to a new prefix will  erase the old prefix. Similarly, remapping an existing prefix to a new  URI will erase the old URI.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a>    If an attempt is made to change or delete a built-in mapping (jcr, nt,    mix, pt, sv, phpcr).  An implementation may similarly prevent the    removal or alteration of additional implementation-specific, built-in    namespaces.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setMapping
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$uri</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span><span class="var-description">: The prefix to be mapped</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$uri</span><span class="var-description">: The URI to be mapped</span>			</li>
				</ul>
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:14 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>